redirect error message

Hello,

is there a way of suppressing/redirecting the error message, using no/lastError didn't work? Thank you.

http://www-01.ibm.com/support/docview.wss?uid=swg21396976

*got the attached error message when attempting to save the module.

-Jim


EHcnck - Wed Jul 10 09:22:12 EDT 2013

Re: redirect error message
adevicq - Thu Jul 11 03:10:59 EDT 2013

Hi,

What kind of operation do you want to trap?

Regards

Re: redirect error message
Adamarla - Thu Jul 11 04:18:03 EDT 2013

Go to the key:

  • HKEY_CURRENT_USER\Software\Telelogic\DOORS\9.3\Config

Add/Modify the Value Name:

  • LOGFILE

Set it to String Value Type:

  • REG_SZ

Set the Value Data to a FilePath:

  • eg. C:\DXL.log

-Adam

Re: redirect error message
EHcnck - Thu Jul 11 09:11:40 EDT 2013

Adamarla - Thu Jul 11 04:18:03 EDT 2013

Go to the key:

  • HKEY_CURRENT_USER\Software\Telelogic\DOORS\9.3\Config

Add/Modify the Value Name:

  • LOGFILE

Set it to String Value Type:

  • REG_SZ

Set the Value Data to a FilePath:

  • eg. C:\DXL.log

-Adam

This didn't work.

 

sample error I would like to redirect

Module m = read("/New Family Car Project/Requirements/System Requirements", true)
m = module(item("/New Family Car Project/Requirements/System Requirements-INVALIDMODULE"))
close(m)

-Jim

Re: redirect error message
Mike.Scharnow - Thu Jul 11 10:08:43 EDT 2013

as far as I know there is no single way to trap all kinds of errors that occur, as you already saw when noError didn't work.

I admit that I have never seen this timeout error. To me this sounds like a severe problem which occurs in rare situations which should be solved somehow - I'm not sure if it can be trapped.

 

As for your last example: Still not sure, which situation exactly you want to avoid / trap. 

m = module (item(xx)) can be trapped with noError(), but if you write your code more defensively, this will not occur. You could write your code like 

Item i = item ("xxx")
if null i then {do whatever you want to do; exit your code}
Module m = module i

You should not close modules unless you are really sure that m is a valid module - otherwise you might get protection faults - and you don't want this :-)

 

hth

Mike